package com.rzcode.coinex.kernel.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author Bridge.Xu
 * @date 2020年02月27日
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "transfer_record")
public class TransferRecord {

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "申请人id")
    private Long memberId;

    @ApiModelProperty(value = "币种")
    private Coin coin;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "手续费")
    private BigDecimal fee;

    /**
     * 接口返回的订单号
     */
    @ApiModelProperty(value = "接口返回的订单号")
    private String orderSn;

    /**
     *转账地址
     */
    @ApiModelProperty(value = "转账地址")
    private String address;

    @ApiModelProperty(value = "备注")
    private String remark;
}
